package main

import "sort"

func main() {

}

func findMedianSortedArrays(nums1 []int, nums2 []int) float64 {
	nums := make([]int, 0)
	nums = append(nums, nums1...)
	nums = append(nums, nums2...)
	sort.Ints(nums)
	length := len(nums)
	temp := length >> 1
	if length%2 == 0 {
		return float64(nums[temp]+nums[temp-1]) / 2
	}
	return float64(nums[temp])
}
